﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using System.ComponentModel.Composition;
using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.Prism.Regions;

namespace HelloWorld.DisplayModule
{
    [ModuleExport(typeof(DisplayModule))]
    public class DisplayModule : IModule
    {
        [Import]
        public IServiceLocator Locator { get; set; }

        [Import]
        public IRegionManager RegionManager { get; set; }

        public void Initialize()
        {
            this.RegionManager.RegisterViewWithRegion("Main", typeof(DisplayView));
        }
    }
}
